<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>回调函数的例子</title>
</head>
<body>
    

    <script>

        function aryChanged (arr,callback) {
            arr.push(100);
            callback();
        }

        var ary = [97,98,99];
        aryChanged(ary,function () {
            console.log(`ary has changed : -> ${ary}`);
        });

       
       
    </script>
</body>
</html>